package com.src.notebookofcy;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import cn.domob.android.ads.DomobAdView;
import com.baidu.mobstat.SendStrategyEnum;
import com.baidu.mobstat.StatService;
import java.io.File;

@SuppressLint({"NewApi"})
public class TextViewActivity extends Activity
{
  String Content;
  int Screen_h;
  int Screen_w;
  private DomobAdView adView;
  Button btn_edit;
  public View.OnClickListener onClickListener = new View.OnClickListener()
  {
    public void onClick(View paramView)
    {
      Intent localIntent = new Intent();
      localIntent.putExtra("STATE", 1);
      localIntent.setClass(TextViewActivity.this, EditActivity.class);
      TextViewActivity.this.startActivity(localIntent);
      TextViewActivity.this.finish();
    }
  };
  private RelativeLayout relativeLayout;
  TextView tv_content;
  TextView tv_title;

  public void AdInit()
  {
    this.relativeLayout = ((RelativeLayout)findViewById(2131165210));
    this.adView = new DomobAdView(this, "56OJztiouNf4jxykjR", "320x50");
    this.relativeLayout.addView(this.adView);
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    requestWindowFeature(1);
    setContentView(2130903046);
    SimpleClass.getSimpleClass();
    this.Content = FileTools.openText(SimpleClass.getFile());
    this.tv_content = ((TextView)findViewById(2131165209));
    this.tv_content.setText(this.Content);
    this.btn_edit = ((Button)findViewById(2131165211));
    this.btn_edit.setOnClickListener(this.onClickListener);
    this.tv_title = ((TextView)findViewById(2131165208));
    SimpleClass.getSimpleClass();
    String str = SimpleClass.getFile().getName();
    this.tv_title.setText(str.substring(0, -4 + str.length()));
    AdInit();
    StatService.setSendLogStrategy(this, SendStrategyEnum.APP_START, 1, false);
  }

  protected void onPause()
  {
    super.onPause();
    StatService.onPause(this);
  }

  protected void onResume()
  {
    super.onResume();
    StatService.onResume(this);
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     com.src.notebookofcy.TextViewActivity
 * JD-Core Version:    0.5.4
 */